<h1>系统管理 - <span id="secondHeading">公司信息</span></h1>
<%= javascript_include_tag "prototype" %>
<script language="JavaScript" type="text/JavaScript">
        function checkName(flag){
                if (flag) {
                        if ($("myname").value == "")
                        {
                                $("id_name").innerText = "公司名称不可为空";
                                $("id_name").style.display = "block";
                                return false;
                        }
                        else return true;
                }
                else {
                        $("id_name").style.display = "none";
                }
        }
        function checkForm(){
                return checkName(true);
        }
</script>

<form name="varForm" action="/sysadmin/varadmin" method="post" id="input-form">
<TABLE border="0" id="INPUT_TABLE">
	<TR>
		<TD colspan="2">
			<% if @flash[:notice] -%>
			<div id="notice"><%= @flash[:notice] %></div>
			<% end -%>
			<% if @account and error_messages_for(:account) %>
			<%=error_messages_for(:account)%>
			<% end %>
		</TD>
	</TR>
	<TR>
		<TD>公司名称：</TD>
		<TD><input id="myname" name="myname" size="30" type="text" value="<%=@myname%>" maxlength="20" onfocus="checkName(false)" onblur="checkName(true)" />          <em>*</em> <div class="redNsg" id="id_name" style="display:none;"></div></TD></TD>
	</TR>
	<TR>
		<TD>公司地址：</TD>
		<TD><input id="myaddress" name="myaddress" size="40" type="text" value="<%=@myaddress%>" maxlength="50"/></TD>
	</TR>
	<TR>
		<TD>公司电话：</TD>
		<TD><input id="myphone" name="myphone" size="30" type="text" value="<%=@myphone%>" maxlength="20" /></TD>
	</TR>
	<TR>
		<TD>公司传真：</TD>
		<TD><input id="myfax" name="myfax" size="30" type="text" value="<%=@myfax%>" maxlength="20" /></TD>
	</TR>
	<TR>
		<TD>办事处地址：</TD>
		<TD><input id="myaddress1" name="myaddress1" size="40" type="text" value="<%=@myaddress1%>" maxlength="50"/></TD>
	</TR>
	<TR>
		<TD>办事处电话：</TD>
		<TD><input id="myphone1" name="myphone1" size="30" type="text" value="<%=@myphone1%>" maxlength="20" /></TD>
	</TR>
	<TR>
		<TD>办事处传真：</TD>
		<TD><input id="myfax1" name="myfax1" size="30" type="text" value="<%=@myfax1%>" maxlength="20" /></TD>
	</TR>
	<TR>
		<TD colspan="2" align="right">
			<input name="commit" type="submit" value="修改" class="sub" onclick="javascript:return checkForm();"/>&nbsp;OR&nbsp;<input type="reset" value="重新填写" class="cal"></TD>
	</TR>

	</TR>
</table>
 <p class="note"> <strong class="alert">注意：</strong><br/>
 一、有 <em>*</em> 标记的是必填项。
 </p>
<%= end_form_tag %>
